import {createApp} from 'vue'

// @ts-ignore
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// @ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import router from "@/router";
import gloablComponent from './components/index';
import 'virtual:svg-icons-register'
import pinia from "@/store";
import * as ElementPlusIconsVue from '@element-plus/icons-vue'


const app = createApp(App)
app.use(ElementPlus, {locale: zhCn})
app.use(router)
app.use(gloablComponent);
app.use(pinia)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.mount('#app')
